<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/wiziq/db" VERSION="20101203" COMMENT="XMLDB file for Moodle mod/wiziq"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
  <TABLES>
    <TABLE NAME="wiziq" COMMENT="Default comment for wiziq, please edit me" NEXT="wiziq_content">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="course"/>
        <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false"
COMMENT="Course wiziq activity belongs to" PREVIOUS="id" NEXT="insescod"/>
        <FIELD NAME="insescod" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false" ENUM="false"
COMMENT="session code returned from wiziq" PREVIOUS="course" NEXT="class_id"/>
        <FIELD NAME="class_id" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false"
COMMENT="class id returned from wiziq" PREVIOUS="insescod" NEXT="name"/>
        <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"
COMMENT="name field for moodle instances" PREVIOUS="class_id" NEXT="intro"/>
        <FIELD NAME="intro" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false"
COMMENT="General introduction of the wiziq activity" PREVIOUS="name" NEXT="introformat"/>
        <FIELD NAME="introformat" TYPE="int" LENGTH="4" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false"
COMMENT="Format of the intro field (MOODLE, HTML, MARKDOWN...)" PREVIOUS="intro" NEXT="wiziq_datetime"/>
        <FIELD NAME="wiziq_datetime" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false"
PREVIOUS="introformat" NEXT="class_timezone"/>
        <FIELD NAME="class_timezone" TYPE="char" LENGTH="255" NOTNULL="true"  PREVIOUS="wiziq_datetime" NEXT="timecreated"/>
        <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false"
PREVIOUS="class_timezone" NEXT="timemodified"/>
        <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false"
PREVIOUS="timecreated" NEXT="duration"/>    
        <FIELD NAME="duration" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="30" SEQUENCE="false"
PREVIOUS="timemodified" NEXT="vc_language"/>
        <FIELD NAME="vc_language" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"
COMMENT="field for language inside VC" PREVIOUS="duration" NEXT="recording"/>
        <FIELD NAME="recording" TYPE="int" LENGTH="10" UNSIGNED="true" DEFAULT="0" SEQUENCE="false"
PREVIOUS="vc_language" NEXT="presenter_id"/>
        <FIELD NAME="presenter_id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false"
PREVIOUS="recording" NEXT="lasteditorid"/>	
        <FIELD NAME="lasteditorid" TYPE="int" LENGTH="10" UNSIGNED="true" NOTNULL="false" SEQUENCE="false"
PREVIOUS="presenter_id" NEXT="class_status"/>                        
        <FIELD NAME="class_status" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false"
PREVIOUS="lasteditorid" NEXT="recording_link"/>
        <FIELD NAME="recording_link" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false"
PREVIOUS="class_status" NEXT="view_recording_link"/>
        <FIELD NAME="view_recording_link" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false"
PREVIOUS="recording_link" NEXT="recording_link_status"/>
        <FIELD NAME="recording_link_status" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false"
PREVIOUS="view_recording_link"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
      </INDEXES>
    </TABLE>
    <TABLE NAME="wiziq_content" COMMENT="Default comment for wiziq, please edit me" PREVIOUS="wiziq">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="course"/>
        <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false"
COMMENT="course to which content loaded" PREVIOUS="id" NEXT="wiziqid"/>
        <FIELD NAME="wiziqid" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false"
COMMENT="wiziqid to which content loaded" PREVIOUS="course" NEXT="type"/>
        <FIELD NAME="type" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false"
COMMENT="Type 1 folder 2 file" PREVIOUS="wiziqid" NEXT="name"/>
        <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false"
COMMENT="name of file or folder" PREVIOUS="type" NEXT="title"/>
        <FIELD NAME="title" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false"
COMMENT="title of file" PREVIOUS="name" NEXT="parentid"/>
        <FIELD NAME="parentid" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true"
SEQUENCE="false" COMMENT="parent id of this content" PREVIOUS="title" NEXT="prevparentid"/>
        <FIELD NAME="prevparentid" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false"
COMMENT="id of parent of parent" PREVIOUS="parentid" NEXT="path"/>
        <FIELD NAME="path" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"
COMMENT="path of file or folder form root" PREVIOUS="prevparentid" NEXT="userid"/>
        <FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"
COMMENT="General introduction of the wiziq activity" PREVIOUS="path" NEXT="uploadtime"/>
        <FIELD NAME="uploadtime" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"
COMMENT="time of uploading" PREVIOUS="userid" NEXT="contentid"/>
        <FIELD NAME="contentid" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"
PREVIOUS="uploadtime" NEXT="old_content_id"/>
        <FIELD NAME="old_content_id" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"
PREVIOUS="contentid" NEXT="cid_change_status"/>
        <FIELD NAME="cid_change_status" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" SEQUENCE="false"
COMMENT="filed to maintain the check between old and new contentid 2 not chenged 1 changed"
PREVIOUS="old_content_id" NEXT="status"/>
        <FIELD NAME="status" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"
COMMENT="1 for converted 0 not converted" PREVIOUS="cid_change_status" NEXT="wcid"/>
        <FIELD NAME="wcid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"
UNSIGNED="true" COMMENT="id helpful in backup" PREVIOUS="status"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
      </KEYS>
    </TABLE>
  </TABLES>
</XMLDB>
